package com.tanhua.dubbo.api;


import com.tanhua.model.mongo.UserLike;
import com.tanhua.model.vo.UserLikeVo;

import java.util.List;


public interface UserLikeApi {

    //统计
    UserLikeVo counts(Long userId);

    List<UserLike> findLove(Integer page, Integer pagesize, Long userId);

    List<UserLike> findILove(Integer page, Integer pagesize, Long userId);

    List<UserLike> findLoveI(Integer page, Integer pagesize, Long userId);

    boolean iLove(Long userId, Long userId1);

  //保存数据到数据库
    Boolean saveOrUpdate(Long userId, Long likeUserId, boolean b);
    //判断是否双向喜欢 如果是 则添加好友
    Boolean TwoWayRush(Long userId, Long likeUserId, boolean b);
    //删除userLike表中喜欢的数据
    Boolean deleteById(Long userId, Long unLikeUserId, boolean b);
}
